package ar.com.sectorwine.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import ar.com.sectorwine.entities.InteresStock;
import ar.com.sectorwine.entities.Users;

/**
 * @author Ismael
 * 
 */
public interface InteresStockRepository extends
		JpaRepository<InteresStock, Long> {

//	@Query("SELECT i FROM InteresStock i WHERE i.stock.id = :idStock AND i.interesado = :usuario")
//	public InteresStock buscarPorStockId(@Param("idStock") Long idStock,
//			@Param("usuario") Users usuario);
	
//	@Query("SELECT i FROM InteresStock i, Empresa e WHERE i. = :idEmpresa")
//	public InteresStock buscarPorEmpresa(@Param("idEmpresa") Long idEmpresa);


}
